package com.sixth.service;

import com.sixth.entity.Department;
import com.sixth.entity.Staff;
import com.sixth.util.CommonResult;
import com.sixth.util.LayTab;
import com.sixth.util.TableLayUi;

public interface DepartmentService {
    TableLayUi findDepartmentByCondition(int page, int limit);

    CommonResult delete(Integer deptid);

    CommonResult update(Department department);

    LayTab sel(Staff staff, Integer deptid);

    CommonResult insert(Department department);

    CommonResult getDeptName(String deptname);
}